package com.tanhua.server.service;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.MovementsVo;
import com.tanhua.model.vo.PageResult;
import com.tanhua.model.vo.VisitorsVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface MovementService {

    //查询自己的动态
    PageResult findMyAll(Integer page, Integer pagesize, Long userId);

    //发布动态
    void publishMovement(Movement movement, MultipartFile[] imageContent) throws IOException;

    //查询好友的动态
    PageResult findFriendMovements(Integer page, Integer pagesize);

    //查询推荐动态列表
    PageResult findRecommendMovements(Integer page, Integer pagesize);

    //查询单条动态的详情
    MovementsVo findRecommendById(String movementId);

    //点赞动态
    Integer likeMovement(String movementId);

    //取消动态点赞
    Integer disLikeMovement(String movementId);

    //动态喜欢
    Integer loveMovement(String movementId);

    //取消动态喜欢
    Integer disloveMovement(String movementId);

    //查询谁看过我
    List<VisitorsVo> queryVisitorsList();

}
